const modeldb = require('./models/db')
const admin = require('./models/admin')
const Class = require('./models/Class')
const book = require('./models/book')
const student = require('./models/student')

// 在学生表建立外键关系到班级
Class.hasMany(student)

modeldb.sync({ alter: true }).then(() => {
    console.log('表同步完成')
})